package com.qf.day07.poly.tuxing;

public class TuXingUtils {

    public static void printInfo(TuXing tuXing){
        tuXing.zc();
        tuXing.area();
    }

    public static void main(String[] args) {
        Circle circle = new Circle();
        circle.setR(1);
        printInfo(circle);
        System.out.println("================");
        Rectangle rectangle = new Rectangle("矩形", 10, 5);
        TuXingUtils.printInfo(rectangle);
        System.out.println("================");
        Rectangle rectangle1 = new Rectangle("正方形", 10, 10);
        TuXingUtils.printInfo(rectangle1);
    }
}
